See Also

SegmentedStream Class  | SegmentedStream Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Language

Visual Basic

C#

C++

C++/CLI

Show All

buffer
The storage location of the data to be sent.
offset
The zero-based position in the buffer from which to begin writing from.
count
The exact number of bytes to write.
See Also Languages PowerTCP Email Validation for .NET

Write(Byte[],Int32,Int32) Method

Dart.PowerTCP.EmailValidation Namespace > SegmentedStream Class > Write Method : Write(Byte[],Int32,Int32) Method

Writes data to the stream.

[Visual Basic]
Overloads Overrides Public Sub Write( _    ByVal buffer() As Byte, _    ByVal offset As Integer, _    ByVal count As Integer _ )
[C#]
public override void Write(    byte[] buffer,    int offset,    int count );
[C++]
public: void Write(    byte[]* buffer,    int offset,    int count ) override
[C++/CLI]
public: void Write(    bytearray<buffer>^ buffer,    int offset,    int count ) override

Parameters

buffer
The storage location of the data to be sent.
offset
The zero-based position in the buffer from which to begin writing from.
count
The exact number of bytes to write.

Exceptions

ExceptionDescription
IOExceptionThrown when the stream is not Writeable.
ArgumentNullExceptionThrown when buffer is null.
ArgumentOutOfRangeExceptionThrown when the offset is less than zero or when count is less than or equal to zero.
ArgumentExceptionThrown when the (offset + count) > buffer.Length.

Remarks

This method writes a sequence of bytes to the stream and returns when the operation is complete.

Use the CanWrite property to determine whether the current instance supports writing.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

See Also

SegmentedStream Class  | SegmentedStream Members  | Overload List


Send comments on this topic.

Documentation version 1.0.3.0.

© 2008 Dart Communications.  All rights reserved.